package com.pzb.goods.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

/**
 * 规格属性对象 gd_goods_units
 * 
 * @author Mr_Wu
 * @date 2021-11-30
 */
public class GdGoodsUnits extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户ID */
    private String extAppid;

    /** 商品编码 */
    private Long goodsId;

    private String goodsUnit;

    /** sku编码 */
    private String skuCode;

    /** 单价 */
    private String price;

    /** 拼团价 */
    private String groupPrice;

    private String panicPrice;

    /** 库存 */
    private Integer stock;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public void setSkuCode(String skuCode)
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }
    public void setPrice(String price)
    {
        this.price = price;
    }

    public String getPrice()
    {
        return price;
    }
    public void setGroupPrice(String groupPrice)
    {
        this.groupPrice = groupPrice;
    }

    public String getGroupPrice()
    {
        return groupPrice;
    }

    public String getPanicPrice() {
        return panicPrice;
    }

    public void setPanicPrice(String panicPrice) {
        this.panicPrice = panicPrice;
    }

    public void setStock(Integer stock)
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("goodsId", getGoodsId())
            .append("skuCode", getSkuCode())
            .append("price", getPrice())
            .append("groupPrice", getGroupPrice())
            .append("stock", getStock())
            .toString();
    }
}
